<?php

namespace app\admin\model;
use app\Model;
class Role extends Model
{
    protected $name = "admin_role";
    protected $pk = "role_id";

    function getRulesAttr($value)
    {
        return json_decode($value,true,512,JSON_OBJECT_AS_ARRAY) ?? [];
    }

}